home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / timeline / cursor.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  2.7 KB  |  76 lines

  1. /*
  2.  * Copyright (c) 1990, 1991 Stanford University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and 
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that (i) the above copyright notices and this permission notice appear in
  7.  * all copies of the software and related documentation, and (ii) the name
  8.  * Stanford may not be used in any advertising or publicity relating to
  9.  * the software without the specific, prior written permission of
  10.  * Stanford.
  11.  * 
  12.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  13.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  14.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  15.  *
  16.  * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
  19.  * ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
  20.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21.  * SOFTWARE.
  22.  */
  23. /* $Header: /Source/Media/collab/TimeLine/RCS/cursor.c,v 1.0 91/09/30 16:53:19 chua Exp Locker: drapeau $ */
  24. /* $Log:    cursor.c,v $
  25.  * Revision 1.0  91/09/30  16:53:19  chua
  26.  * Update to version 1.0
  27.  * 
  28.  * Revision 0.41  91/09/23  17:07:12  chua
  29.  * 
  30.  * 
  31.  * Revision 0.40  91/09/20  15:03:08  chua
  32.  * Contains functions to display the cursor as busy or normal.
  33.  *  */
  34.  
  35. static char cursorrcsid[] = "$Header: /Source/Media/collab/TimeLine/RCS/cursor.c,v 1.0 91/09/30 16:53:19 chua Exp Locker: drapeau $";
  36.  
  37. #include "main.h"
  38. #include <xview/cursor.h>
  39.  
  40. static Xv_Cursor busyCursor;
  41. static Xv_Cursor normalCursor;
  42.  
  43. void CreateCursor() 
  44. {
  45.   busyCursor = (Xv_Cursor) xv_create(XV_NULL, CURSOR,
  46.                 CURSOR_SRC_CHAR, OLC_BUSY_PTR,                 
  47.                 NULL);
  48.   normalCursor = (Xv_Cursor) xv_create(XV_NULL, CURSOR,
  49.                 CURSOR_SRC_CHAR, OLC_BASIC_PTR,                 
  50.                 NULL);
  51. }
  52.  
  53. void NormalCursor(tlFrame)
  54.      TimeLineFramePtr tlFrame;
  55. {
  56.   xv_set(xv_get(tlFrame->TimeLine_window->controls, CANVAS_NTH_PAINT_WINDOW, 0),
  57.      WIN_CURSOR, normalCursor, NULL);    
  58.   xv_set(xv_get(tlFrame->TimeLine_window->DrawCanvas, CANVAS_NTH_PAINT_WINDOW, 0),
  59.      WIN_CURSOR, normalCursor, NULL);        
  60.   xv_set(xv_get(tlFrame->TimeLine_window->AppCanvas, CANVAS_NTH_PAINT_WINDOW, 0),
  61.      WIN_CURSOR, normalCursor, NULL);        
  62. }
  63.  
  64. void BusyCursor(tlFrame) 
  65.      TimeLineFramePtr tlFrame;
  66. {
  67.   xv_set(xv_get(tlFrame->TimeLine_window->controls, CANVAS_NTH_PAINT_WINDOW, 0),
  68.      WIN_CURSOR, busyCursor, NULL);    
  69.   xv_set(xv_get(tlFrame->TimeLine_window->DrawCanvas, CANVAS_NTH_PAINT_WINDOW, 0),
  70.      WIN_CURSOR, busyCursor, NULL);        
  71.   xv_set(xv_get(tlFrame->TimeLine_window->AppCanvas, CANVAS_NTH_PAINT_WINDOW, 0),
  72.      WIN_CURSOR, busyCursor, NULL);        
  73.   
  74. }
  75.  
  76.